package city.spring.shift;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 人员信息
 *
 * @author HouKunLin
 * @date 2020/5/29 0029 0:26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class People {
    /**
     * 人员名称
     */
    private String name;
    /**
     * 使用次数
     */
    private int useNum;

    public void incUseNum() {
        ++useNum;
    }

    @Override
    public String toString() {
        return name + " (" + useNum + ")";
    }
}
